package com.xj.demo.classcommand;

public class ArithmeticTest {
    public void test1(){
        int a = 1;
        int b = 2;
        int c = a + b;
        int d = a - b;
        int e = a * b;
        int f = b / a;
        int g = -a;
        a += 10;
        a = a + 10;
        int h = ~a;
        //0001
        //1110
        System.out.println(h);
    }

    public void test2(){
        int i = 10;
        int b = ++i;
        int c = i++;
        System.out.println(i);
    }
    public void test3(){
        int i = 1;
        short b = (short) i;
    }

    public void test4(){
        double naN = Double.NaN;
    }
}
